﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PageModuleAddEdit.aspx.cs"
    Inherits="BitPortal.Admin.Module.PageModule.PageModuleAddEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ext:ResourceManager ID="ResourceManager1" runat="server">
        </ext:ResourceManager>
        <ext:Panel ID="pnContener" runat="server" PaddingSummary="10" ButtonAlign="Center"
            Border="false" Layout="FormLayout" AutoWidth="true" AutoScroll="true" Height="400"
            Header="false">
            <Items>
                <ext:Hidden ID="txtID" runat="server" Text="0">
                </ext:Hidden>
                <ext:TabPanel ID="TabPanel1" runat="server" ActiveTabIndex="0" Plain="true" AutoHeight="true">
                    <Items>
                        <ext:Panel ID="Panel1" runat="server" Title="Thông tin cơ bản" AutoHeight="true"
                            Padding="10" LabelWidth="150" LabelAlign="Left" Layout="Form">
                            <Items>
                                <ext:TextField ID="txtName" runat="server" AnchorHorizontal="95%" FieldLabel="Tiêu đề"
                                    EmptyText="Nhập tên module" AllowBlank="false">
                                </ext:TextField>
                                <ext:ComboBox ID="cbBaseModule" runat="server" Width="300" FieldLabel="Loại module"
                                    AllowBlank="false" FireSelectOnLoad="true" AutoPostBack="true" EmptyText="Chọn loại module" Editable="false">
                                </ext:ComboBox>
                                <ext:ComboBox runat="server" ID="cbPosition" FieldLabel="Vị trí" Width="300" Editable="false">
                                    <Items>
                                        <ext:ListItem Text="Sidebar Trái" Value="LeftContent" />
                                        <ext:ListItem Text="Sidebar Phải" Value="RightContent" />
                                        <ext:ListItem Text="Giữa trang" Value="CenterContent" />
                                        <ext:ListItem Text="Đầu trang" Value="TopContent" />
                                        <ext:ListItem Text="Chân trang" Value="BottomContent" />
                                    </Items>
                                    <SelectedItem Value="LeftContent" Text="Sidebar Trái" />
                                </ext:ComboBox>
                                <ext:SpinnerField ID="txtSortOrder" runat="server" Text="0" AllowDecimals="false"
                                    MinValue="0" FieldLabel="Thứ tự hiển thị" Width="195">
                                </ext:SpinnerField>
                                <ext:Checkbox runat="server" ID="ckEnabled" Checked="true" FieldLabel="Cho phép hiển thị " />
                                <ext:Checkbox runat="server" ID="ckOnAllPage" Checked="false" FieldLabel="Hiển thị trên tất cả các trang" />
                            </Items>
                        </ext:Panel>
                        <ext:Panel ID="Panel5" runat="server" Title="Thuộc tính" AutoHeight="true" Padding="10"
                            LabelAlign="Left" Layout="FormLayout" AnchorHorizontal="100%" LabelWidth="150">
                            <Content>
                            </Content>
                        </ext:Panel>
                    </Items>
                </ext:TabPanel>
            </Items>
            <Buttons>
                <ext:Button ID="btnUpdate" runat="server" Text="Cập nhật" Scale="Medium">
                    <DirectEvents>
                        <Click OnEvent="btnUpdate_Click">
                            <EventMask ShowMask="true" Msg="Waiting..." MinDelay="500" />
                        </Click>
                    </DirectEvents>
                </ext:Button>
                <ext:Button ID="btnInsert" runat="server" Text="Thêm" Scale="Medium" CausesValidation="true">
                    <DirectEvents>
                        <Click OnEvent="btnInsert_Click">
                            <EventMask ShowMask="true" Msg="Waiting..." MinDelay="500" />
                        </Click>
                    </DirectEvents>
                </ext:Button>
                <ext:Button ID="btnCancel" runat="server" Text="Bỏ qua" Scale="Medium">
                    <Listeners>
                        <Click Handler="parent.Ext.WindowMgr.getActive().hide();" />
                    </Listeners>
                </ext:Button>
            </Buttons>
        </ext:Panel>
    </div>
    </form>
</body>
</html>
